import request from '@/utils/http'
// import qs from 'qs'

export function dict (params) {
  return request({
    url: '/commonDataInfo/dict',
    method: 'GET',
    params
  })
}

export function saveOrUpdateDustInfo (params) {
  return request({
    url: '/personalityDataInfo/saveOrUpdateDustInfo',
    method: 'POST',
    data: params
  })
}

export function dustInfoList (params) {
  return request({
    url: '/personalityDataInfo/dustInfoList',
    method: 'GET',
    params
  })
}

export function saveOrUpdateDustOtherInfo (params) {
  return request({
    url: '/personalityDataInfo/saveOrUpdateDustOtherInfo',
    method: 'POST',
    data: params
  })
}

export function dustOtherInfoList (params) {
  return request({
    url: '/personalityDataInfo/dustOtherInfoList',
    method: 'GET',
    params
  })
}

export function dustEquipInfoList (params) {
  return request({
    url: '/personalityDataInfo/dustEquipInfoList',
    method: 'GET',
    params
  })
}

export function saveOrUpdateDustEquipInfo (params) {
  return request({
    url: '/personalityDataInfo/saveOrUpdateDustEquipInfo',
    method: 'POST',
    data: params
  })
}

export function deleteDustEquipInfo (params) {
  return request({
    url: '/personalityDataInfo/deleteDustEquipInfo',
    method: 'DELETE',
    data: params,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded' // 设置为JSON格式
    }
  })
}
